<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>今博士_修改密码</title>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title></title>
	<link rel="stylesheet" href="__CSS__/chao/reset.css" />
	<link rel="stylesheet" href="__CSS__/chao/xiugai.css" />
</head>
<body>
	<div class="logo"><img src="__IMG__/chao/logo.png"></div>
	<div class="main">
		<form id="form" method="post">
			<!-- <div>
				<{:username($data)}>
			</div> -->
			<div class="main1">
				<span class="mm"><img src="__IMG__/chao/password.png"></span>
				<input type="password" name="pwd" id="pwd" placeholder="请输入旧密码">
			</div>
			<div class="main1">
				<span class="mm"><img src="__IMG__/chao/password.png"></span>
				<input type="password" name="password" id="password" placeholder="请输入新密码">
			</div>
			<div class="main1">
				<span class="mm"><img src="__IMG__/chao/password.png"></span>
				<input type="password" name="repassword" id="repassword" placeholder="请确认新密码">
			</div>
			<div class="main1 submit0">
				<a href="javascript:set();">确认</a>
			</div>
		</form>
	</div>
	<script src="__JS__/chao/jquery.min.js"></script>
	<script src="__JS__/chao/rem.js"></script>
	<script>
		// 提交表单
    function set(){
      // if(pwdstatus == 0){
      //   $("#pwd").focus();
      //   return false;
      // }
      // if(passwordstatus == 0){
      //   $("#password").focus();
      //   return false;
      // }
      // if(repasswordstatus == 0){
      //   $("#repassword").focus();
      //   return false;
      // }
      var formData = new FormData($( "#form" )[0]);
      var url2 = "<{:U('Public/login')}>"
      $.ajax({  
        url: "<{:U('Public/sets')}>" ,  
        type: 'POST',  
        data: formData,  
        async: true,  
        cache: false,  
        contentType: false,  
        processData: false,  
        success: function (e) {  
          console.log(e.msg); 
          window.location.href=url2; 
        },  
        error: function (e) {  
          alert(e.msg);  
        }  
      });  
    }
	</script>
</body>
</html>